<?php 

class Videos extends Controller{
  
  function Videos(){
    parent::Controller();
	// let's check if the language is supported 
    $this->load->library('parser');
    $this->load->scaffolding('videos');  
    $this->load->model('Videos_model');        
  }
  
  function index(){
     
  }
   
  function vote_video_up(){
  	$videoId = $_POST['videoId']; 
    $fbId = $_POST['fbId'];
	return $this->Videos_model->vote_video_up($videoId , $fbId);
  }
  
}

?>